package com.example.demo.bean;

import com.example.demo.validator.IsMobile;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class LoginFro {
    @NotNull
    @IsMobile//自定义格式检验
    private String mobile;
    @NotNull
    private String password;
}
